#include <iostream>

using namespace std;

int n, q;

int main() {
	freopen("replace.in", "r", stdin);
	freopen("replace.out", "w", stdout);
	cin >> n >> q;
	while(q--) {
		cout << "0" << endl;
	}
}
